from django.urls import path
from .views import *

urlpatterns = [
    # 登录
    path('login', LoginView.as_view()),

    # 获取上传Token
    path('aliyun/oss/sts/upload/token/for/admin', admin_upload_token),

    # 模型管理
    path('models/<str:app_name>/<str:model_name>/<str:id>', SingleView.as_view()),
    path('models/<str:app_name>/<str:model_name>', ListAndCreateView.as_view()),
    path('models', ModelsView.as_view()),
]
